Package-level declarations

Functions

Link copied to clipboard

Sends a chat request with default parameters and a DSL for building messages.

suspend fun DeepSeekClient.chat(message: String): ChatCompletion

Sends a single user message to the chat API.

Sends a chat request with default parameters.

Streams chat responses using default parameters and a message builder DSL.

Streams chat responses for a single user message.

Streams chat responses using default parameters.

Sends a chat request with custom parameters and a DSL for building messages.

Sends a chat request with custom parameters and messages.

Streams chat responses using custom parameters and a message builder DSL.

Streams chat responses using custom parameters and messages.

Link copied to clipboard

Sends a fully customizable chat completion request.

Sends a chat completion request to the DeepSeek API.

Streams a fully customizable chat completion request.

Link copied to clipboard

Streams chat completion responses chunk by chunk from the DeepSeek API.

Link copied to clipboard

Sends a fully customizable Responses API request.

Sends a single user message to the Responses API with default parameters.

Sends a conversation to the Responses API with default parameters.

Sends a request to the Responses API.

Streams a fully customizable Responses API request.

Streams a single user message through the Responses API with default parameters.

Streams a conversation through the Responses API with default parameters.

Sends a conversation built by a DSL, with custom parameters.

Sends a single user message to the Responses API with custom parameters.

Sends a conversation to the Responses API with custom parameters.

Streams a conversation built by a DSL, with custom parameters.

Streams a single user message through the Responses API with custom parameters.

Streams a conversation through the Responses API with custom parameters.

Link copied to clipboard

Streams a Responses API call as semantic server-sent events.

Link copied to clipboard

Deletes a stored file.

Link copied to clipboard
suspend fun DeepSeekClient.fim(prompt: String): FIMCompletion

Generates a completion using the Fill-In-the-Middle capability with default parameters.

Streams FIM completions with default parameters.

Generates a completion using the Fill-In-the-Middle capability with custom parameters.

Streams FIM completions using custom parameters and a prompt.

Link copied to clipboard

Creates a fully customizable FIM completion request using a builder pattern.

Sends a Fill-In-the-Middle (FIM) completion request to the DeepSeek API.

Streams a fully customizable FIM completion using a builder pattern.

Link copied to clipboard

Streams Fill-In-the-Middle (FIM) completions chunk by chunk from the DeepSeek API.

Link copied to clipboard
suspend fun DeepSeekClientBase.listFiles(after: String? = null, limit: Int? = null, order: SortOrder? = null, purpose: FilePurpose? = null): FileList

Lists stored files, oldest first, one page at a time.

Link copied to clipboard

Retrieves the list of DeepSeek models available for the current API key.

Link copied to clipboard

Fetches the metadata of a single stored file.

Link copied to clipboard
suspend fun DeepSeekClientBase.uploadFile(bytes: ByteArray, filename: String, expiresAfterSeconds: Int? = null): FileObject

Uploads an image for a vision model to read, and returns the stored FileObject.

Link copied to clipboard

Retrieves the current user's available API balance.